#include <stdio.h>

int main()
{
    int a, b, c, large, median, small;
    scanf("%d %d %d", &a, &b, &c);

    // 先找出最大值
    if (a >= b && a >= c) {
        large = a;
        if (b >= c) {
            median = b;
            small = c;
        } else {
            median = c;
            small = b;
        }
    } else if (b >= a && b >= c) {
        large = b;
        if (a >= c) {
            median = a;
            small = c;
        } else {
            median = c;
            small = a;
        }
    } else {
        large = c;
        if (a >= b) {
            median = a;
            small = b;
        } else {
            median = b;
            small = a;
        }
    }

    printf("%d %d %d", large, median, small);
    return 0;
}